Dart.Ssh Namespace > HttpProxyData Class > HttpProxyData Constructor : HttpProxyData Constructor(String,Int32,String,String,String[]) |
'Declaration Public Function New( _ ByVal hostNameOrAddress As String, _ ByVal port As Integer, _ ByVal username As String, _ ByVal password As String, _ ByVal requestHeaderLines() As String _ )
'Usage Dim hostNameOrAddress As String Dim port As Integer Dim username As String Dim password As String Dim requestHeaderLines() As String Dim instance As New HttpProxyData(hostNameOrAddress, port, username, password, requestHeaderLines)
public HttpProxyData( string hostNameOrAddress, int port, string username, string password, string[] requestHeaderLines )
public: HttpProxyData( string* hostNameOrAddress, int port, string* username, string* password, string*[]* requestHeaderLines )
public: HttpProxyData( String^ hostNameOrAddress, int port, String^ username, String^ password, array<String^>^ requestHeaderLines )
It is possible to specify a username and password if the proxy requires basic authentication. Also, additional request header lines can be specified (e.g., "User-Agent: CERN-LineMode/2.15 libwww/2.17b3").
Neither username nor password can be null to use basic authentication.
new HttpProxyData("192.168.1.1", "3128", "proxyuser", "secret", new String[] {"User-Agent: TrileadDerivedClient/1.0", "X-My-Proxy-Option: something"});